Skip to content

fix: bootstrap demo peers from a fully qualified seed name - #86

Merged
AlexanderWangY merged 1 commit into
mainfrom
fix/seed-fqdn
Nov 19, 2026
Merged

AlexanderWangY merged 1 commit into
mainfrom
fix/seed-fqdn

Conversation

@AlexanderWangY

@AlexanderWangY AlexanderWangY commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

What

scripts/foodbolt-pods now passes the seed Service as a fully qualified name with a trailing dot: --bootstrap=spctrld-peers-<run>.foodbolt.svc.cluster.local.:7000.

Why

Peers scheduled on brev-6ap3r0udj, the node that joined today, stayed isolated forever. That node is about 111 ms from CoreDNS over Tailscale; the AWS nodes are at most a few ms away.

Pods resolve with ndots:5, and the seed name has only four dots. Without the trailing dot, the resolver first tries the name under each of the four search domains (foodbolt.svc.cluster.local, svc.cluster.local, cluster.local, brev.local), each a round trip of at least 111 ms. That always ran past spctrld's seedResolveTimeout of 200 ms (internal/node/member.go), so the peer never contacted a seed. With the trailing dot it is one lookup of about 111 ms.

Testing

On the live cluster:

  • A replacement orders peer on the Brev node joined within seconds.
  • With 9 of 16 peers on the Brev node, the overlay stayed one component with nothing isolated across three checks 20 s apart.
  • Orders routed through Brev-hosted instances.

Note

This is a workaround with a thin margin: 111 ms against a 200 ms limit. The proper fix belongs in spctrld: resolve seeds off the node loop with a timeout of a couple of seconds.

Summary by CodeRabbit

  • Bug Fixes
    • Improved service discovery reliability for worker pods by correcting the DNS address format used during startup. This helps ensure workers can locate the peer service consistently.

Pods resolve with ndots:5, so the seed Service name was tried under four
search domains before the absolute one. On a node ~111 ms from CoreDNS
(the Brev node over Tailscale) that ran past spctrld's 200 ms seed
resolve timeout every time, and peers there stayed isolated. A trailing
dot makes it a single lookup.
@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The worker --bootstrap argument now passes the peer Service DNS name with a trailing dot.

Changes: Worker bootstrap configuration

Layer / File(s) Summary
Update worker bootstrap argument
scripts/foodbolt-pods
The worker --bootstrap argument now ends the peer Service DNS name with a trailing dot.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

Possibly related PRs

Suggested reviewers: h1divp

Merge Risk: Minimal · up to 2ad2b

This change makes demo worker pods look up the peer seed with a single DNS query, which avoids timeouts on slow-DNS nodes. It is low risk and a trivial revert if needed. No merge-blocking concerns were found.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: worker pods now bootstrap demo peers from a fully qualified seed name (trailing dot), which matches the single-line change in scripts/foodbolt-pods and the stated obje…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: worker pods now bootstrap demo peers from a fully qualified seed name (trailing dot), which matches the single-line change in scripts/foodbolt-pods and the stated objective of avoiding search-domain lookups that exceeded spctrld's seed-resolution timeout. The title is specific, concise, and follows conventional commit style.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7b3a4b3e-e819-4e3e-8c54-64dd9bb40e70
Commits

Reviewing files that changed from the base of the PR and between a81a5da and 2ad2b31.

Files selected for processing: 1

  • scripts/foodbolt-pods

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@AlexanderWangY
AlexanderWangY merged commit ec8dc15 into main Nov 19, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant